﻿using B.S.InOutErrorCode;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.InOut.Domain
{
    /// <summary>
    /// 报损实体
    /// </summary>
    public class Reportmanage
    {
        /// <summary>
        /// 报损ID（主键）
        /// </summary>
        [Key]
        public int Id { get; set; }
        /// <summary>
        /// 产品ID（外键）
        /// </summary>
        public string? PId { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string? ReportNum { get; set; }
        /// <summary>
        /// 关联单号
        /// </summary>
        public string? AssociatedNum { get; set; }
        /// <summary>
        /// 批次
        /// </summary>
        public string? batch { get; set; }
        /// <summary>
        /// 规格
        /// </summary>
        public string? Specifications { get; set; }
        /// <summary>
        /// 数量
        /// </summary>
        public string? Quantity { get; set; }
        /// <summary>
        /// 仓库
        /// </summary>
        public string? Warehouse { get; set; }
        /// <summary>
        /// 原库位
        /// </summary>
        public string? Originallocation { get; set; }
        /// <summary>
        /// 报损库位
        /// </summary>
        public string? Reportlocation { get; set; }
        /// <summary>
        /// 报损类型
        /// </summary>
        public ApiReport? Report { get; set; }
        /// <summary>
        /// 制单人
        /// </summary>
        public string? RepoCreator { get; set; }
        /// <summary>
        /// 审核人
        /// </summary>
        public string? RepoReviewer { get; set; }
        /// <summary>
        /// 审核时间
        /// </summary>
        public DateTime? RepoAuditTime { get; set; }
        /// <summary>
        /// 审核状态
        /// </summary>
        public ApiStatus? RepoAuditstatus { get; set; }
        /// <summary>
        /// 制单时间
        /// </summary>
        public DateTime? RepoCreationTime { get; set; }
        /// <summary>
        /// 修改人
        /// </summary>
        public string? RepoModifiedBy { get; set; }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? RepoChangeTime { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        public string? Rember { get; set; }
        /// <summary>
        /// 逻辑删除列
        /// </summary>
        public int? IsDelete { get; set; } = 0;
        /// <summary>
        /// 审核原因
        /// </summary>
        public string ShenRember { get; set; }

    }
}
